Skip to main content

Resend Code

POST /auth/resend_code

Description

Resends either an email verification code or a password reset code, depending on the type field.

Request Parameters

Requires Authentication: false

BODY

NameTypeRequiredDescription
emailstringYesTarget account email.
typestringNoverify or reset. Default behavior is verification flow.

Usage Example

await axios.post("https://api.daykeeper.app/auth/resend_code", {
email: "johndoe@example.com",
type: "verify",
})

Success Response

{
"message": "Verification code resent to johndoe@example.com"
}

For password resets:

{
"message": "Password reset code sent to johndoe@example.com"
}

Error Response

CodeDescription
400Email missing
403Invalid type
404User not found
500Server error